//
//  NetRequest+SafeApi.m
//  AppleMarket
//
//  Created by yangy on 09/11/2018.
//  Copyright © 2018 szgsy. All rights reserved.
//

#import "NetRequest+SafeApi.h"

@implementation NetRequest (SafeApi)
+ (void) request_DoAuthSafePwd:(NSString*) pwd
                          code:(NSString*) code
               completeHandler:(void (^)(id responseObj)) completeHandler
                          fail:(void (^)(NSError *error)) failHandler
{
    NSDictionary *params = @{
                             @"SetSafePwd" : pwd,
                             @"VerifyCode" : code
                             };
    [self postWithUrl:@"/api/SafeApi/DoAuthSafePwd" parameters:params success:^(id response) {
        completeHandler(response);
    } fail:^(NSError *error) {
        failHandler(error);
    } showHUD:NO includeParameterToURL:NO];
}
@end
